#include <errno.h>
#define __LIBRARY__
#include <unistd.h>

_syscall2(int, whoami,char*,name,unsigned int,size);

/*
int whoami(char* name,unsigned int size)
{
    long __res;
    __asm__volatile
    (
     "int $0x80"
    : "=a" (__res) 
    : "0" (__NR_whoami),"b" ((long)(name)),"c" ((long)(size)));
    )
    if (__res >= 0) \
	return (int) __res; \
    errno = -__res; \
    return -1; \
}
*/

int main()
{
	char s[30];
	whoami(s,30);
	printf("%s",s);
	return 0;
}
